package com.phiture.erp.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author YH
 * @date 2025/4/7
 */

@Getter
@AllArgsConstructor
public enum ErpMaterialIssModeEnum {
    PRODUCTION_AND_MATERIAL_REQUISITION(1, "生产领料"),
    BOARD(2, "看板"),
    DIRECT_SENDING(3, "直送"),
    UNCLAIMED_MATERIAL(4, "不领料");

    private final Integer mode;
    private final String desc;

    public static final Map<Integer, String> MATERIAL_ISS_MODE_MAP = new HashMap<>(4);
    static {
        for (ErpMaterialIssModeEnum modeEnum : ErpMaterialIssModeEnum.values()) {
            MATERIAL_ISS_MODE_MAP.put(modeEnum.mode, modeEnum.desc);
        }
    }
}
